﻿// ------------------------------------------------------------------------------------------------
//  <copyright file="PObject.cs" company="Iveely">
//    Copyright (c) Iveely Liu.  All rights reserved.
//  </copyright>
//  
//  <Create Time>
//    03/02/2013 21:59 
//  </Create Time>
//  
//  <contact owner>
//    liufanping@iveely.com 
//  </contact owner>
//  -----------------------------------------------------------------------------------------------

#region

using System;
using IveelySE.Config;

#endregion

namespace IveelySE.Common
{
    /// <summary>
    ///   超级父类(用户的类必须继承此类)
    /// </summary>
    [Serializable]
    public class PObject
    {
        /// <summary>
        ///   设置文件名
        /// </summary>
        /// <param name="fileName"> 文件名 </param>
        /// <param name="value"> 对象值 </param>
        public PObject(string fileName, Object value)
        {
            this.FileName = fileName;
            this.Id = Application.GetCurrentPageIndex();
            this.Value = value;
            Application.SetCurrentPageIndex();
        }

        /// <summary>
        ///   编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        ///   文件名
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        ///   存放值
        /// </summary>
        public Object Value { get; set; }
    }
}